<?php
namespace common\models\shop;

use common\models\Common;

/**
 * ContactForm is the model behind the contact form.
 */
class Cart extends Common
{
    public static function tableName() {
        return '{{%user_cart}}';
    }

    public function getDetail() {
        return $this->hasOne(GoodsDetail::className(), ['id' => 'goods_detail_id']);
    }
}
